<h2 class="title">{%if $act eq 'add'%}添加{%else%}修改{%/if%}维修设备信息</h2>
<form action="index.php?c=zy_mend_log&m={%$act%}&post=1" method=post name=frm enctype="multipart/form-data"  onSubmit="return Validator.Validate(this,3)">
<table class="tb_term" width="100%">
<tr>
	<td class="tr_td_width01 alignright">设备自编号</td>
	<td class="tr_td_width03"><input type=text class="input_edit_stand txt-normal" name="mc_no"  value='{%$mc_no%}' {%if $is_show == 1%}readonly{%/if%} dataType="Require" msg=""></td>
	<td class="tr_td_width01 alignright">承修单位</td>
	<td><input type=text name="mend_comp" value='{%$mend_comp%}' class="input_edit_long txt-normal" {%if $is_show == 1%}readonly{%/if%}></td>
</tr>
<tr>	
	<td class="alignright">设备名称</td>
	<td><input type=text class="input_edit_stand txt-normal" name="mc_name"  value='{%$mc_name%}' {%if $is_show == 1%}readonly{%/if%} dataType="Require" msg=""></td>
	<td  class="alignright">规格型号</td>
	<td><input type=text name="mc_model"  value='{%$mc_model%}' class="input_edit_long txt-normal" {%if $is_show == 1%}readonly{%/if%} dataType="Require" msg=""></td>
</tr>
<tr>
	<td class="alignright">维修数量</td>
	<td><input type=text name="mc_number"  value='{%$mc_number%}' class="input_edit_num txt-normal" {%if $is_show == 1%}readonly{%/if%} dataType="Number" msg=""></td>
	<td class="alignright">修理费用</td>
	<td><input type=text name="mc_mend_cost" value='{%$mc_mend_cost%}'  class="input_edit_num txt-normal" {%if $is_show == 1%}readonly{%/if%}  dataType="Currency" msg=""><label class="label01">万元</td></td>
</tr>
<tr>
	<td class="alignright">维修状态</td>
	<td>
		<select name="mend_state" class="select_edit txt-normal" {%if $is_show == 1%}disabled="disabled"{%/if%}>
		{%html_options options=$mend_state_arr selected=$mend_state %}
		</select>
	</td>
	<td class="alignright">完成日期</td>
	<td>
	<input type=text  class="input_date_edit txt-normal" name="mend_finsh" value='{%$mend_finsh|date_format:"%Y-%m-%d"%}' id="mend_finsh" readonly>
	<script>
			Calendar.setup({
				inputField     :    "mend_finsh",   // id of the input field
				ifFormat       :    "%Y-%m-%d",       // format of the input field
				showsTime      :    false,
				timeFormat     :    "24"
			});
		</script>
	</td>
</tr>
<!--
<tr>
	<td class="alignright">维修设备附件</td>
	<td colspan="3"><input type="file" class="txt-normal" size=50 name="file_path"  value='' ></td>
</tr>
-->
<tr>
	<td class="alignright">修造项目内容</td>
	<td colspan="5"><textarea rows=3 class="textarea_edit txt-normal"  name="mend_mc_info" {%if $is_show == 1%}readonly{%/if%}  dataType="Require" msg="">{%$mend_mc_info%}</textarea></td>
</tr>
<tr>
	<td class="alignright">维修设备备注</td>
	<td colspan="5"><textarea rows=3 class="textarea_edit txt-normal" name="mend_info" {%if $is_show == 1%}readonly{%/if%}>{%$mend_info%}</textarea></td>
</tr>
</table>
<p class="btn_right">
	{%if $is_show != 1%}
		<input type=hidden name="mc_mend_id" size=30 value='{%$mc_mend_id%}'>
		<input type=hidden name='mend_log_id' id='mend_log_id' value='{%$mend_log_id%}'>
		<input type=hidden name='mc_mend_id' id='mc_mend_id' value='{%$mc_mend_id%}'>
		<button type="submit" class="b-default" hidefocus="true"><span><em>{%if $act eq 'add'%}提交{%else%}更新{%/if%}</em></span></button>
	{%/if%}
	<button type="button" class="b-default" hidefocus="true" onclick="history.go(-1)"><span><em>返回</em></span></button>	
</p>
</form>